package com.oz;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import org.springframework.util.FileCopyUtils;

public class Utils {

	static java.util.logging.Logger log = java.util.logging.Logger.getLogger(Utils.class.getName());

	public static String DATAPATH = "";

	public static String UPLOADPATH = "";

	/**
	 * 保存二进制流流到本地
	 * 
	 * @return 存储路径
	 */
	public String saveToLocal(byte[] in, String... path) {
		String a = path[0];
		
		try {
			FileCopyUtils.copy(in, new File("/abc"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return "";
	}

}
